package com.tzstcl.sys.user.model;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.tzstcl.base.model.BaseModel;
import com.tzstcl.commons.utils.LongJsonDeserializer;
import com.tzstcl.commons.utils.LongJsonSerializer;

import java.util.Date;
import java.io.Serializable;

/**
 * 公司：天筑科技股份有限公司
 * 作者：zgq
 * 日期：2019年05月09日
 * 说明：系统权限表实体类
 */
public class SysPermission extends BaseModel<SysPermission> implements Serializable {

	private static final long serialVersionUID = 1L;
    /**
     *名称
     */
    private String name;
    private String parentName;
    /**
     *父级编号
     */
    @JsonSerialize(using = LongJsonSerializer.class)
    @JsonDeserialize(using = LongJsonDeserializer.class)
    private Long parentId;
    /**
     *排序
     */
    private Integer sort;
    /**
     *权限标识
     */
    private String permission;
    /**
     *0 平台(0为最大权限，不允许赋予组织)
     */
    private String type;



    public void setName(String name){
        this.name = name;
    }

    public String getName(){
        return this.name;
    }

    public void setParentId(Long parentId){
        this.parentId = parentId;
    }

    public Long getParentId(){
        return this.parentId;
    }

    public void setSort(Integer sort){
        this.sort = sort;
    }

    public Integer getSort(){
        return this.sort;
    }

    public void setPermission(String permission){
        this.permission = permission;
    }

    public String getPermission(){
        return this.permission;
    }

    public void setType(String type){
        this.type = type;
    }

    public String getType(){
        return this.type;
    }

    public String getParentName() {
        return parentName;
    }

    public void setParentName(String parentName) {
        this.parentName = parentName;
    }
}